﻿using System;
using System.Configuration;

namespace SharedGenomics.Core.Configuration
{
    public class AppConfigurationReaderFactory : ConfigReaderFactory
    {
        public AppConfigurationReaderFactory()
            : base()
        {
        }

        public AppConfigurationReaderFactory(bool provideSettings)
            : base(provideSettings)
        {
        }

        protected override IConfigurationReader GetConfiguration()
        {
            //return a reader for the application's app.config file
            return new DefaultConfigurationReader(ConfigurationManager.AppSettings, ConfigurationManager.ConnectionStrings);
        }
    }
}
